package o;

import androidx.viewpager.widget.ViewPager.OnPageChangeListener;
import huawei.widget.HwSubTabWidget;
import java.lang.ref.WeakReference;

public class ccb implements OnPageChangeListener {
    private WeakReference<HwSubTabWidget> ˊ;

    public ccb(HwSubTabWidget hwSubTabWidget) {
        this.ˊ = new WeakReference(hwSubTabWidget);
    }

    public void onPageScrolled(int i, float f, int i2) {
        if (this.ˊ != null) {
            HwSubTabWidget hwSubTabWidget = (HwSubTabWidget) this.ˊ.get();
            if (hwSubTabWidget != null) {
                hwSubTabWidget.setSubTabScrollingOffsets(i, f);
            }
        }
    }

    public void onPageScrollStateChanged(int i) {
        if (this.ˊ != null) {
            HwSubTabWidget hwSubTabWidget = (HwSubTabWidget) this.ˊ.get();
            if (hwSubTabWidget != null) {
                hwSubTabWidget.setSubTabSelected(i);
            }
        }
    }

    public void onPageScrolled(int i) {
    }
}
